package p.ithorns.integration.transform.enums;

import p.ithorns.tools.translator.annotation.IDict;

/**
 * Gender
 *
 * @author Ht.L
 * @date 2025-05-20 21:44
 * @since 1.0.0
 */
public enum Gender implements IDict<Integer> {
    MALE(1, "男"),
    FEMALE(2, "女"),
    ;

    final Integer code;

    final String name;

    Gender(Integer code, String name) {
        this.code = code;
        this.name = name;
    }



    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getText() {
        return name;
    }

}